This has been discussed in bug 541009.
#include "config.h"
+#undef GTK_DISABLE_DEPRECATED
#include "gtkhseparator.h"
#include "gtkorientable.h"
* widget using gtk_separator_menu_item_new() and add it to the menu with
* gtk_menu_shell_append().
* </note>
+ *
+ * GtkHSeparator has been deprecated, use #GtkSeparator instead.
*/
* Creates a new #GtkHSeparator.
*
* Returns: a new #GtkHSeparator.
+ *
+ * Deprecated: 3.2: Use gtk_separator_new() with %GTK_ORIENTATION_HORIZONTAL instead
*/
GtkWidget *
gtk_hseparator_new (void)
#ifndef __GTK_HSEPARATOR_H__
#define __GTK_HSEPARATOR_H__
+#ifndef GTK_DISABLE_DEPRECATED
#include <gtk/gtkseparator.h>
G_END_DECLS
+#endif
#endif /* __GTK_HSEPARATOR_H__ */
#include "config.h"
#include "gtkorientable.h"
+#undef GTK_DISABLE_DEPRECATED
#include "gtkvseparator.h"
* The #GtkVSeparator widget is a vertical separator, used to group the
* widgets within a window. It displays a vertical line with a shadow to
* make it appear sunken into the interface.
+ *
+ * GtkVSeparator has been deprecated, use #GtkSeparator instead.
*/
G_DEFINE_TYPE (GtkVSeparator, gtk_vseparator, GTK_TYPE_SEPARATOR)
* Creates a new #GtkVSeparator.
*
* Returns: a new #GtkVSeparator.
+ *
+ * Deprecated: 3.2: Use gtk_separator_new() with %GTK_ORIENTATION_VERTICAL instead
*/
GtkWidget *
gtk_vseparator_new (void)
#ifndef __GTK_VSEPARATOR_H__
#define __GTK_VSEPARATOR_H__
+#ifndef GTK_DISABLE_DEPRECATED
#include <gtk/gtkseparator.h>
-
G_BEGIN_DECLS
G_END_DECLS
+#endif
-#endif /* __GTK_SEPARATOR_H__ */
+#endif /* __GTK_VSEPARATOR_H__ */